

const allRoutes = [
  
  {
    path: "mine",
    name: "mine",
    component: () =>  import(/*webpackChunkName:'mine'*/ "../views/Home/Mine") ,
    meta: {
      name: "我的中心",
      icon: "iconfont icon-wodezhongxin",
      fullPath: "/mine"
    }
  },
  {
    path: "welcome",
    name: "welcome",
    component: () =>  import(/*webpackChunkName:'welcome'*/ "../views/Home/Welcome"),
    meta: {
      name: "管理首页",
      icon: "iconfont icon-shouye",
      fullPath: "/welcome"
    }
  },
  {
    path: "attendance",
    name: "attendance",
    component: () => import("../views/Home/Attendance"),
    meta: {//路由元信息  为了后期读取
      //存对应菜单的名字 还可以存图标的类名
      name: "考勤管理",
      icon: "iconfont icon-kaoqinchuqin",
      fullPath: "/attendance"
    }
  },
  {
    path: "studentManager",
    name: "studentManager",
    component: () => import(/*webpackChunkName:'studentManager'*/ "../views/Home/StudentManager"),
    redirect: "/studentManager/product",
    meta: {
      name: "学员管理",
      icon: "iconfont icon-xueyuanguanli",
      fullPath: "/studentManager"
    },
    children: [
      {
        path: "dormitory",
        name: "dormitory",
        component: () => import("../views/Home/StudentManager/StudentDormitory"),
        meta: {
          fullPath: "/studentManager/dormitory",
          icon: "iconfont icon-sushe",
          name: "学员宿舍"
        }
      },
      {
        path: "profile",
        name: "profile",
        component: () => import("../views/Home/StudentManager/StudentProfile"),
        meta: {
          fullPath: "/studentManager/profile",
          icon: "iconfont icon-yonghuziliao",
          name: "学员资料"
        }
      },
      {
        path: "product",
        component: () =>
          import(
              /*webpackChunkName:"product" */ "../views/Home/StudentManager/StudentProduct"
          ),
        name: "product",
        meta: {
          //储存一些属性
          fullPath: "/studentManager/product",
          icon: "iconfont icon-xiangmu",
          name: "学员项目管理",
        },
      },
    ]
  },
  {
    path: "users",
    component: () =>
      import(/*webpackChunkName:"users" */ "../views/Home/Users"),
    name: "users",
    meta: {
      //储存一些属性
      fullPath: "/users",
      icon: "iconfont icon-shezhi",
      name: "用户管理",
    },
  },
  {
    path: "statistics",
    component: () =>
      import(/*webpackChunkName:"statistics" */ "../views/Home/Statistics"),
    name: "statistics",
    meta: {
      //储存一些属性
      fullPath: "/statistics",
      icon: "iconfont icon-shujutongji",
      name: "数据统计",
    },
  },
  {
    path: "vipmanager",
    component: () =>
      import(/*webpackChunkName:"users" */ "../views//Home/VipManager"),
    name: "vipmanager",
    redirect:"/vipmanager/charge",
    meta: {
      //储存一些属性
      fullPath: "/vipmanager",
      icon: "iconfont icon-shezhi",
      name: "vip管理",
    },
    children: [
      {
      path: "charge",
      component: () =>
        import(/*webpackChunkName:"users" */ "../views/Home/VipManager/Charge"),
      name: "charge",
      meta: {
        //储存一些属性
        fullPath: "/vipmanager/charge",
        icon: "iconfont icon-shezhi",
        name: "vip充值",
      },
      },
      {
        path: "order",
        component: () =>
          import(/*webpackChunkName:"users" */ "../views/Home/VipManager/Order"),
        name: "order",
        meta: {
          //储存一些属性
          fullPath: "/vipmanager/order",
          icon: "iconfont icon-shezhi",
          name: "订单管理",
        },
      },
      
      
    ]
  },
  

]

export default allRoutes